/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.zjdt.epserver.db.dao;

import java.util.List;
import java.util.Map;

/**
 *
 * @author dusin
 */
public interface SiterDao {
    boolean doCreate(Object[] bean);
    boolean doDeleteById(int id);
    boolean doUpdateById(Object[] bean);
    public boolean doUpdatePassword(int id,String password);
    public boolean doUpdatePasswordByUsername(String username,String password);
    
    Map<String,Object> findById(int id);
    Map<String,Object> findByName(String name);
    public Map<String, Object> findByUsername(String username);
    List<Map<String,Object>> findAll();
        
    public Map<String,Object> login(String username,String password);
    public boolean doUpdateFactory(int id, String fcode1,String fcode2,String fcode3,String fcode4);
    
    //查找在途的车辆
    public Map<String,Object> findMyTrip(String factoryCode);
    //查找已到达车辆
    public Map<String,Object> findMyFinishedTrip(String factoryCode);    
}
